package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author rui
 * @since 2020-03-02
 */
@TableName("vpnserver")
@Setter
@Getter
public class VpnServer extends Model<VpnServer> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "server_id", type = IdType.AUTO)
    private Integer id;

    @TableField("server_ip")
    private String serverIp;

    @TableField("server_port")
    private Integer serverPort;

    @TableField("server_name")
    private String serverName;

    @TableField("pub_key")
    private String pubKey;

    private Integer status;//1为启用状态，0为禁用状态

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("server_type")
    private Integer serverType;

    @TableField("english_name")
    private String serverName2;

    @TableField("tw_name")
    private String serverName3;

    @TableField("icon")
    private String sourcePath;

    @TableField("area_level")
    private Integer areaLevel;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
